ield (field pointer)                    -> Number
 Field (file number; field number) -> Pointer
                                                                                    Pg 43-6
     
field pointer       Pointer        Pointer to a field      
file number        Number        File number
field number      Number        Field number          

Field has two different forms.

If passed file number and field number, Field returns a pointer to the field.

If passed field pointer, Field returns the field number of the field.

The following example sets the FieldPtr variable to a pointer to the second field in the third file:

         FieldPtr := Field (3; 2)

Using the first form of the Field command on FieldPtr returns the number 2. For example, the following line sets FieldNum to 2:

         FieldNum := Field (FieldPtr)

The following example sets the FieldNum variable to the field number of [File3] Field2:

         FieldNum := Field (»[File3]Field2)

See also: Count ields, FIELD TTRUBUTES,  ieldname, 
             ile